All Questions
18 questions
2votes
1answer
1kviews
Is it possible to create post in wordpress using postman?
We have tried to create a post in WordPress using postman, can't able to create one since we have received an error as you are not allowed to do this action Even though I entered the admin login, it ...
0votes
0answers
114views
move setting data from wordpress api to codestar freamwork
I am coding a plugin that uses the Star code framework It should be mentioned that I had written this plugin using WordPress API before. Now I want to integrate and make it more advanced, but I ran ...
0votes
1answer
125views
How can I send api calls from my plugin?
I have a collection of REST APIs that our android app uses. We use POSTMAN to send requests and troubleshoot them. Now, I am working on a plugin where I am trying to send API calls to all the ...
0votes
1answer
89views
Integrating boxtal PHP library into a custom WordPress Plugin
I need to integrate this PHP library on my WordPress site. I read that you have to create a plugin or integrate it into the child theme. So I created a plugin and integrated the PHP library in the ...
2votes
0answers
597views
Create or Update thousands of woocommerce products via PHP
I have client with a cash register in the store. That register has an API from which I'm retrieving over 5000 products and syncing them with online store. I wrote plugin that triggers cron job every ...
1vote
1answer
242views
How to modify WCMP Rest API response?
I had tried the register_rest_field() to modify the Rest API response of the WCMP plugin, but it seems that this function applies only to the default wordpress REST API (wp/v2). The purpose of ...
0votes
0answers
27views
is it possible to fetch data from a remote api while admin is writing a new post?
Editor picture: I wonder if it is possible to fetch data from a remote api while user is typing a new post inside the editor. That data should be shown anywhere in the screen (I mean, inside the ...
0votes
0answers
25views
One time call to external API in widget
I want to make only one call to external API in the 'my_widget' class here is an example: class my_widget extends WP_Widget { public function __construct() { $args = array( '...
0votes
0answers
688views
wp_remote_post To external API multiple values with the same key
I am trying to create a WP plugin that calls an external API using HTTP POST. I am using wp_remote_post and my arguments look like this: $body = array( 'CustomerID' => '10', 'Items' => [...
1vote
1answer
2kviews
wp_remote_get() returns 403 while file_get_contents() does not
We are working on a WordPress plugin and we require an API call. We are using the api: http://www.geoplugin.net/json.gp?ip=8.8.8.8 In this context: $response = wp_remote_get("http://www....
0votes
0answers
93views
How to use information from the database in the front-end?
Can I make a query to the database that returns all my products in Json form? And can I consume that data from my front-end to show what I want or filter it according to what I need? PHP: plugin_dir()...
2votes
1answer
974views
REST-API: extend media-endpoint
I want to modify the REST-API (media-endpoint) and add a new field called media_category. First I tried this with the post-endpoint, this has worked well, but when I try the same with the media-...
0votes
1answer
326views
what is the best way to create a premium plugin while also protecting your code
I am pretty experienced with wordpress and php coding but never attempted to create a wordpress plugin until now. I want to create a plugin that will offer basic functionality for free and extended ...
0votes
3answers
9kviews
create web service for android app using wordpress website
I have to create Web services for android app using WordPress Database. where user can login and register using android app. that record will be saved in WordPress database. display All the posts of ...
0votes
1answer
81views
API Functions to Register and Show WordPress List Tables
I am developing my own plugin and I am trying to figure out how to add WordPress List Tables to my admin page. I am aware I can write the the HTML myself but if there is an API method this is the most ...